package org.xi.structural.proxy.cglib;

/**
 * cglib 动态代理
 */
public class Main {
    public static void main(String[] args) {
        UserManager userManager = new UserManager();
        CglibProxyFactory cglibProxyFactory = new CglibProxyFactory();
        UserManager proxyUserManager = (UserManager) cglibProxyFactory.getInstance(userManager);

        proxyUserManager.addUser("Bob", "bob@example.com");
    }
}